Creating a Retriable Workflow

Selecting the Publish as Robotic Automation Web Service option enables an additional optional function, Is Retriable, which is a feature unique to Robotic Automation workflows:

If enabled, the retry feature is triggered automatically by the server whenever a robot workflow fails, according to the pre-configured values in the Server Console (see the Robotic Automation Solution Guide). By enabling this feature, if the Robotic Automation workflow you are creating fails, it will try to run again automatically, depending on the number of retry attempts you configure.

When you configure a robot workflow to be retriable, the workflow icon will display a retry indicator next to the workflow name:

Retriable Workflow Guidelines

Before configuring a robot workflow as retriable, you should verify that the retry option for the workflow is a logical setting. For example, in the following workflow, the retry option should not be used:

Given three clients with three balances: Client A balance=$200, Client B balance=$0, and Client C balance=$0), and a workflow that does the following: Transfer $100 from Client A to Client B, and transfer $100 from Client A to Client C.

The expected result at end of the workflow is the following status: Client A balance=$0, Client B balance=$100, and Client C balance=$100.

However, if the workflow fails after transferring the $100 to Client B, the workflow should not retry to run, because this will cause a duplicate transfer to Client B. Therefore, in this case, the workflow should not be configured as retriable.

In any case where running the same workflow more than once will result in data corruption or in different results than the expected results, the workflow should not be marked as retriable. Only after verifying that the workflow knows how to handle all possible failure scenarios and resume correctly should the workflow be marked as retriable. Retries that are configured within the workflow logic (a loop) are not affected by this feature.

After a workflow is published, you will not be able to change the retry setting. Therefore, when creating the workflow, determine in advance whether this workflow should be retriable or not. If you need to test a workflow, you can set the workflow accordingly, and then, if you determine that the Is Retriable feature needs to be changed, copy the existing workflow, change this setting, and then publish the new workflow.

Retriable Settings in Robotic Automation Solution Upgrades

By default, an existing Robotic Automation Solution that is upgraded to Real-Time Solutions 6.3 will be set to retriable unless configured otherwise in the Real-Time Designer.